//
//  CantripAppController.h
//  Cantrip
//
//  Created by James Callender on Sat Jun 05 2004.
//  Copyright (c) 2004 James Callender. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <ExceptionHandling/NSExceptionHandler.h>
#import "CantripPluginManager.h";
#import "CantripWorldSettingsController.h";
#import "CantripBookmarkController.h";

@interface CantripAppController : NSObject 
{
    IBOutlet NSMenu *oWorldsMenu;
    IBOutlet NSTextView *oConsoleView;
    IBOutlet NSPanel *oConsolePanel;
    IBOutlet NSMenuItem *oConsoleMenuItem;
    IBOutlet NSPanel *oUpdatePanel;
    IBOutlet NSTextView *oUpdateTextArea;
}

+ (CantripAppController *)controller;

- (IBAction)showSettingsPanel:(id)sender;
- (IBAction)checkForUpdateAction:(id)sender;
- (IBAction)downloadButtonAction:(id)sender;
- (IBAction)ignoreButtonAction:(id)sender;
- (IBAction)toggleConsoleAction:(id)sender;
- (IBAction)worldsMenuAction:(id)sender;

- (void)updateWorldsMenu:(id)notification;

- (void)log:(NSString *)format, ...;

@end
